# apps/backend/video/Dockerfile
FROM node:20-alpine AS builder
WORKDIR /app
RUN npm install -g pnpm

COPY ./package.json ./package.json

RUN pnpm install 

COPY tsconfig.json ./tsconfig.json

COPY tsconfig.build.json ./tsconfig.build.json

RUN pnpm run build

# 关键：确认 dist 路径正确！
COPY ./dist ./dist

EXPOSE 3000

CMD ["node", "dist/main"]